from pydantic import BaseModel
from schemas.response import ResponseModel
from fastapi import APIRouter, Depends
from core.auth import verify_auth
from core.exceptions import CustomException

secure_router = APIRouter()


# POST测试接口
@secure_router.post("/manage/api/v1/live/recognition")
async def test_post(auth_result: bool = Depends(verify_auth)):
    try:
        # 业务逻辑
        data = {"name": "lly"}
        return ResponseModel(data=data)
    except Exception as e:
        raise CustomException(code=404, message=str(e))

